package com.xbongbong.pro.statistic.enums;

import lombok.Getter;

/**
 * 同环比判断枚举
 * @author xinpeng.jiang
 * @version V1.0
 * @date 2021/6/4 10:10
 * @since V1.0
 */
@Getter
public enum YearChainEnum {
    /**
     * 同比
     */
    YEAR_ON_YEAR(1, 1),
    /**
     * 环比
     */
    CHAIN_ON_CHAIN(2,  2),
    /**
     * 不存在
     */
    UNKNOWN(-1,  -1),
    ;

    private final Integer code;

    private final Integer value;

    YearChainEnum(Integer code, Integer value) {
        this.code = code;
        this.value = value;
    }
}
